extern cmp
[section .data]

string db "hello world", 0Ah
strlen equ $ - string

[section .code]

global _start
global print

print:
	mov edx, [esp + 8]
	mov ecx, [esp + 4]
	mov ebx, 1
	mov eax, 4
	int 0x80
	ret
_start:
	push dword 3
	push dword 4
	call cmp ;调用c函数
	add esp, 8

	mov ebx, 0 ;sys_exit
	mov eax, 1
	int 0x80
